<script setup lang="ts">
const props = defineProps<{
  visible: boolean;
  setVisible: (visible: boolean) => void;
}>();
</script>

<template>
  <a-drawer
    :width="340"
    :visible="props.visible"
    @ok="props.setVisible(false)"
    @cancel="props.setVisible(false)"
    unmountOnClose
    :footer="false"
  >
    <template #title> 个人信息 </template>
    <slot name="default"> </slot>
  </a-drawer>
</template>

<style scoped></style>
